package com.weiyuwqj.controller.notice;

import com.weiyuwqj.api.model.BusAccountRecharge;
import com.weiyuwqj.api.service.BusAccountRechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by huzj on 2017/6/13.
 */
@Controller
public class ReturnNoticeController {

  /*  @Autowired
    BusAccountRechargeService accountRechargeService;

    @Autowired
    private SignKeyService signKeyService;
    @Autowired
    private ReturnNoticeService returnNoticeService;



    //web投资同步回调
   *//* @RequestMapping(value = "/return/notice/webInvest")
    public Object getReturn(ResponseBodyBean responseBodyBean,HttpServletRequest request) {
        Map map = signKeyService.decryptAndVerify(responseBodyBean);
        String orderId = String.valueOf(map.get("orderId"));
        request.setAttribute("orderId",orderId);
        return "main/return/invest";
    }*//*

    //查询结果
    @ResponseBody
    @RequestMapping(value = "/return/notice/getInvestResult", method = RequestMethod.POST)
    public Object getInvestResult(String orderId) {
        return returnNoticeService.getInvestResult(orderId);
    }

    *//**
     * 同步跳转地址
     * @param request
     * @return
     *//*
    @RequestMapping("/pay/payBack")
    public Object payBack(HttpServletRequest request){
        Map<String, String> map = CommonConvert.convertRequestToMap(request);
        RetData retData=accountRechargeService.platformRechargeSuccess(map);
        BusAccountRecharge busAccountRecharge=accountRechargeService.findBusAccountRechargeByOrderNo(map.get("merOrderNo"));

        return "/html/rechargeSuccessfully.html";

    }


*/

}
